package org.zhenglide.oa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zhenglide.oa.entity.LeaveBill;
import org.zhenglide.oa.mapper.LeaveBillMapper;
import org.zhenglide.oa.service.ILeaveBillService;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class LeaveBillServiceImpl extends ServiceImpl<LeaveBillMapper, LeaveBill> implements ILeaveBillService {
   @Autowired
   LeaveBillMapper leaveBillMapper;
	@Override
	public List<LeaveBill> getMyLeaveBillList(Integer uid) {
		// TODO Auto-generated method stub
//	  List<LeaveBill> list = list(new QueryWrapper<LeaveBill>().eq("user_id", uid));
		List<LeaveBill> list = leaveBillMapper.getMyLeaveBillList(uid);
	  return list;
	}
	
}
